package com.dstz.demo.rest.controller;

import com.dstz.demo.core.manager.ProjectBudgetManager;
import com.dstz.demo.core.model.ProjectBudget;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/sys/ProjectBudget")
public class ProjectBudgetController  {

    @Autowired(required = false)
    ProjectBudgetManager projectBudgetManager;

    @GetMapping("/findProjectBudget")
    public List<ProjectBudget> findProjectBudget(){
        List<ProjectBudget> list=projectBudgetManager.findprojectbudget();
        return list;
    }
}
